<template>
  <div class="main-right">
    <div class="main-right-searh">
      <i class="iconfont icon-sousuokuangsousuo-copy"> </i>
      <input type="text" placeholder="搜索音乐" />
    </div>
    <div class="main-right-hd">
      <!-- <h2>推荐</h2> -->
    </div>
    <div class="main-right-tab">
      <a href="#">音乐</a>
      <a href="#">排行</a>
      <a href="#">有声电台</a>
      <a href="#">歌手</a>
      <a href="#">分类歌单</a>
      <a href="#">数字专辑</a>
      <a href="#">听书 </a>
    </div>
    <!-- 轮播图 -->
    
          <div class="block text-center">
             <span class="demonstration"> </span>
             <el-carousel height="150px" :style="{ width: '600px' }">
               <el-carousel-item v-for="item in 4" :key="item">
                      <h3 class="small justify-center" text="2xl">{{ item }}</h3>
                     </el-carousel-item>
                  </el-carousel>
          </div>

           
    <!-- 歌单推荐 -->
    <div class="main-right-hot">
      <h4>精选推荐</h4>
      <ul>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>111111</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>222222</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>333333</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>444444</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>555555</p>
          <span class="hot_play"></span>
        </li>
      </ul>
    </div>
    <!-- 新歌推荐 -->
    <div class="main-right-hot">
      <h4>新歌推荐</h4>
      <ul>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>111111</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>222222</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>333333</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>444444</p>
          <span class="hot_play"></span>
        </li>
        <li>
          <!-- <img src="images/1.jpg" alt=""> -->
          <p>555555</p>
          <span class="hot_play"></span>
        </li>
      </ul>
    </div>
  </div>
</template>


<style lang="less" scoped>
/* 搜索框 */
.main-right-searh {
  text-align: center;
  position: relative;
}
.main-right-searh input {
  padding: 10px 30px; //内边距，上下，左右
  width: 300px;
  outline: none;
  border-radius: 10px;
}
.main-right-searh i {
  position: absolute;
  left: 485px;
  top: 10px;
  font-weight: 700;
  color: #777;
}
.main-right-hd {
  font-size: 30px;
  margin-bottom: 20px;
}
/* 右侧导航栏 */
.main-right-tab {
  text-align: center;
  height: 50px;
}
.main-right-tab a {
  margin: 0 25px;
  position: relative;
}
.main-right-tab a:hover {
  color: #ec4141;
}
.main-right-tab a::before {
  content: "";
  width: 100%;
  height: 3px;
  background-color: #ec4141;
  position: absolute;
  bottom: -5px;
  left: 0;
  transform: scale(0);
  transition: all 0.5s;
}
.main-right-tab a:hover::before {
  transform: scale(1);
}
/* 轮播图  */
.main-right-slide ul {
  display: flex;
  justify-content: space-between;
}
.main-right-slide ul li {
  flex: 0 1 49%;
}
.main-right-slide ul img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}
.main-right-switch {
  text-align: center;
  padding-top: 20px;
}
/* 小圆点 */
.main-right-switch a {
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0 7px;
}
.main-right-switch .selected {
  background-color: rgba(0, 0, 0, 0.3);
}
/* 歌单推荐 */
.main-right-hot h4 {
  font-size: 20px;
  margin-bottom: 10px;
}
.main-right-hot ul {
  display: flex;
  justify-content: space-between;
}
.main-right-hot ul li {
  flex: 0 1 18%;
  position: relative;
  overflow: hidden;
}
/* 确保图片不会超过父元素 */
.main-right-hot ul li img {
  max-width: 100%;
  height: auto;
}
.hot_play {
  position: absolute;
  top: 0;
  left: 0;
  background: url() no-repeat;
  width: 100%;
  height: 100%;
  transform: scale(0);
  display: none;
}
.main-right-hot ul li :hover .hot_play {
  display: block;
  transform: scale(0.3);
}
.main-right-hot ul li img:hover {
  transform: scale(1.1);
}
.main-right-hot ul li p {
  margin: 10px 0;
}
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.block.text-center {
  display: flex;
  justify-content: center;
  align-items: center;
  
  
 
}
.slider{
  display: flex;
}
</style>